package service

import "ylb/entity"

type EmailService interface {
	Send(email entity.Email, connection entity.EmailConnection) error
	SendDefault(email entity.Email) error
	SendHtml(email entity.Email) error
	SendManyCode(subject string, head string, receiver []string) (map[string]string, error)
	SendCode(subject string, head string, receiver string) (string, error)
	SendCodeAndSetRedis(subject string, head string, receiver string, key string) error
}
